package com.ruoyi.maintenance.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维护记录对象 maintenance_record
 * 
 * @author silence
 * @date 2025-07-21
 */
public class MaintenanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 计划ID */
    @Excel(name = "计划ID")
    private Long planId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 记录类型(1-维护记录,2-检查记录) */
    @Excel(name = "记录类型(1-维护记录,2-检查记录)")
    private Long recordType;

    /** 记录内容 */
    @Excel(name = "记录内容")
    private String recordContent;

    /** 记录结果(1-正常,2-异常,3-待确认) */
    @Excel(name = "记录结果(1-正常,2-异常,3-待确认)")
    private Long recordResult;

    /** 异常描述 */
    @Excel(name = "异常描述")
    private String abnormalDesc;

    /** 处理建议 */
    @Excel(name = "处理建议")
    private String suggestions;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 记录人 */
    @Excel(name = "记录人")
    private Long recordBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }

    public void setRecordType(Long recordType) 
    {
        this.recordType = recordType;
    }

    public Long getRecordType() 
    {
        return recordType;
    }

    public void setRecordContent(String recordContent) 
    {
        this.recordContent = recordContent;
    }

    public String getRecordContent() 
    {
        return recordContent;
    }

    public void setRecordResult(Long recordResult) 
    {
        this.recordResult = recordResult;
    }

    public Long getRecordResult() 
    {
        return recordResult;
    }

    public void setAbnormalDesc(String abnormalDesc) 
    {
        this.abnormalDesc = abnormalDesc;
    }

    public String getAbnormalDesc() 
    {
        return abnormalDesc;
    }

    public void setSuggestions(String suggestions) 
    {
        this.suggestions = suggestions;
    }

    public String getSuggestions() 
    {
        return suggestions;
    }

    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }

    public void setRecordBy(Long recordBy) 
    {
        this.recordBy = recordBy;
    }

    public Long getRecordBy() 
    {
        return recordBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planId", getPlanId())
            .append("deviceId", getDeviceId())
            .append("recordType", getRecordType())
            .append("recordContent", getRecordContent())
            .append("recordResult", getRecordResult())
            .append("abnormalDesc", getAbnormalDesc())
            .append("suggestions", getSuggestions())
            .append("recordTime", getRecordTime())
            .append("recordBy", getRecordBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
